//获取数据
import 'package:shared_preferences/shared_preferences.dart';

class Shared {
  static Future getSpValue(String key) async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    return prefs.getString(key);
  }

//设置数据
  static Future setSPValue(String key, dynamic value) async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    prefs.setString(key, value);
  }
}
